Fix to image resizing and removal.