Added support for image resize