Line 152-4 set the aspect ratio if width and height are defined.