DocManage:fix rotating images