resize and update images
resizing