doScreenshot now obtains correct canvas