added functions

Will now try to screenshot only the octgn window, though gets confused
if there are multiple octgn windows.