allow assigning the rotation axis for image output