new internal image deletion helper