UNSTABLE. Changed getData() to also return masks.

Currently having silent errors throughout the new stuff I wrote. Working
on that.
Fixed the big instability, and commented line 699

Seems to run faster since there is less loop overhead. For images with
NaNs, it will run significantly faster by avoiding any of those pixels.