Added ability to specify width and height

Added the ability to specify the width and height of the canvas for
circumstances which require the graph be rendered while the canvas is
not visible to the user.