passing canvas id to all rendering functions