Worked like a charm looki! Thanks for the very quick update, fixed the layer loading problem for sure, I'll be able to go through and convert all my old code that compared blank tiles by looking at ((layertile(x,y) +1) mod 255256) == 0, which was a bit silly line of math.
But one problem you should be aware of! Your download link didn't work at first, I wondered why, then I noticed you uploaded your new version as .ZIP instead of .zip
The one you just posted should be here;
I just glanced at the root address out of curiosity since I didn't see any example files.