Fixed image resizing

Loaded images gets automatically resized while maintaining the original
aspect ratio.