Fix rotation. Fix saving result.