changed getMWidth() and getMHeight() to enable head node to acquire the
master width and height of the sketch