fix featured image for photos

Fixes the featured image so that it returns the actual featured image instead of the original file.