Fixed bug with rectangular image aspect ratio