fix for filepicker image upload