Back to 512x512 atlas, cleanup, ref GH-4, due to GH-5
Detect texture index overflow, ref GH-5