setup canvas for double buffering