Use drawTiledPixmap to render patterns.