Let's start with the question:
You can use the Preflight feature of Acrobat to "separate" those PDFs with images from those without.
BUT…
What/how are you planning on compressing the PDFs that wouldn't allow you to choose a lossless form of compression (thus leaving the images alone)?