Improved aspect ratio calculations
Removed white background