Fixed rotate issue in non-webkit browsers