Maintain aspect ratio of scaled up gallery images