Fixes image pop-in after upload