Fix image resizing.