flush the buffered writer... still too dark, casting 64 rays causes weird stuff