updates to image resizing