def METHOD_NAME(self, tile_coord, format=None):
    url = self.url_template.substitute(tile_coord, format, self.grid)
    if self.http_client:
        return self.http_client.open_image(url)
    else:
        return retrieve_image(url)