changed the way the canvas is passed from camera.js to accomidate different camera resolutions