preview image gets removed if matching gallery item is deleted