Fixes old image width and height persisting when reuploading an image.