changed 'image' to 'frame', changed the pause with drawnow