Get only gallery images

The previous implementation returned all images associated with the post. My changes will return only images that are in galleries.