making the image upload work