Added JPEG orientation check to avatar dialog