function img = currentImage() img = get(get(get(get(0, 'Current'), 'CurrentAxes'), 'Children'), 'CData');