Added possibility to keep aspect ratio with fixed width/height.