Fix image attached orientation bug.