image upload fix bug