Better and simpler drawing method

Uses the correct way to draw a pixel array in HTML5