spin for screenshot so file i/o doesn't cause errors.
this should be abstracted for other use cases!