Implemented proportional image scaling.