Remove position parameter from renderCanvas function