Adapted image gallery to display correct aspect ratios.