changes for back to resizing imagexxx