Make sure writePixels doesn't get inlined aggressively, there's really no good savings/reason for it to get inlined.