Got rotate and flip working but tray is still weird.