fix race condition in screenshot save - closes issue #36