write image/autorotate