Added support for image/texture in-place resizing