Fix image upload bug #30(critical).