remove rotate image code