hack rotate img 90 deg before saving