tweaked spiral code and simulator gets levels from 6 byte header in image.bin