fix PictureFrame to cope with adding and deleting files while running