Added initial version of image resize