updated: moved stuff out of Figure and RectFigure classes to allow code
separation to exist with TempFigure. TempFigure implementation is done.