fix for image file upload helper