Fix rotation and screenshot