hack for image upload