Fixed errors in image upload form