Fixed up screenshot code, properly captures multiple windows now