added back aspect ratio scaling