rotate photo from html file input element