fixed some stream page functions, adding a canvas for drawing tests