updated drawing function to use arrays and temp canvas. smooth and cool now.