Fix image resizing after upload