Fixed bug in aspect ratio calculation.