Auto rotate gif to proper orientation