upload image at proper orientation