fix ios 6 and fix imageOrientation