api2: fix preview rotation