Fix image not instantly showing after file upload