created Viewport vars, extracted canvas size var