SquareSpace in their infinite wisdom will delete "unused" images from your library. They don't recognize custom code images as being used. Having this same issue on blog posts where i use custom code to make author headshots/bio.
Honestly, I'm migrating my website to WordPress soon. There are so many aggravating and unsolvable issues such as this one with SS that should not exist on a professional web platform. Image management is a basic feature.