fixed canvas resizing problems, added option to redraw() method