passing canvas