update xmoto code for screen capture