massive speed improvement

using a custom getImageData method that doesn't access the dom each
time, many many many times faster