I recently picked up a problem with Google indexing images rather than the attached post or page. I suspect this has something to do with the All in One SEO plugin I use.
To fix I first tried to no index the image. This by going to Media Liberay, selecting the image for editing. Once the window opened I scrolled dpwn to the AiOSEO settings below the Description field, then selection Advanced. The first option is Robot Settings where I deactivated Default Settings to allow me to no index the image.
However I suspect it makes more sense to go to the AiOSEO settings, to select the Search Appearance from the menu. Click on the Media tab and Redirect the Attachment URL’s to the Attachment Parent.