Thermal and Moire rendering now work, started optimizing some of the bounds checking