'Modifies an image URL according the method, returning a new
URL. For WEBPROXY, a URL on the proxy server is returned.
Otherwise, the URL is returned unmodified.'

def proxy_url(self, maxwidth, url):

    if self.local:
        return url
    else:
        return resize_url(url, maxwidth)
