Fixed error checking in image upload