got file watcher to wait until file finishes being modified before uploading. weirdly does not work when saving a tif from imagej