image upload bug fixed