def METHOD_NAME(self, url):
    snapshot = capture_jpeg({'snapshot': url, "snapshotSslValidation": False}, use_nozzle_config=True)
    base64_image = base64.b64encode(snapshot).decode('utf-8')
    return {'pic': base64_image