fixed image not available when uploading non image file types  like video