Implemented guard against saving non-existant images