A bit cleaned up script for resizing image