upload image bug correction