Added automatically orientation before image upload