seperated the canvas processing to its own class.
improved the performance by a second.