SW-481 fixed the image upload bug