Updated OS X screenshot code to support multiple desktops.