Added image upload function to the rate page