I intentionally modified this, to give the cacheTile method a way to affect the rendering.
Currently it is not needed by my code, but I thought about using it and it might be useful for other users of this code.