Separated tile generation from Processing sketch.