Seems two big bugs are in the code now, bad subsetting, and pixel mask identifies wrong pixels. Will fix asap.