Some tweaks to the image resizing...