Tweaked grid to maintain image aspect ratio