Support orientation in drag

 - Fixed rotation correction in screenshot
 - Raise exception if received XML is incorrect