constrain photos to a fixed block regardless of aspect ratio