Fix upload image

Fix upload image causing uncommitted error