limit the canvas bounds is rendered so firefox does not raise an exception

cc @rochoa