import sqlite3


def get_tile(dbfile, z, x, y):
    """Get a specific image tile from an sqlite db."""
    con = sqlite3.connect(dbfile)
    with con:
        cur = con.cursor()
        cur.execute('SELECT image FROM tiles where z=? AND x=? AND y=?', (z, x, y))
        image = cur.fetchone()[0]
    return str(image)