def METHOD_NAME(self, *args):
    if self.app_instance==None:
        self.app_instance = self.search_app_instance(self)
        if self.app_instance==None:
            return
    self.frame_index = self.frame_index + 1
    self.app_instance.execute_javascript("""
        url = '/%(id)s/get_image_data?index=%(frame_index)s';
        xhr = null;
        xhr = new XMLHttpRequest();
        xhr.open('GET', url, true);
        xhr.responseType = 'blob'
        xhr.onload = function(e){
            urlCreator = window.URL || window.webkitURL;
            urlCreator.revokeObjectURL(document.getElementById('%(id)s').src);
            imageUrl = urlCreator.createObjectURL(this.response);
            document.getElementById('%(id)s').src = imageUrl;
        }
        xhr.send();
        """ % {'id': id(self), 'frame_index':self.frame_index})