Make image selection & deletion work by ignoring the concept of "group elements" and going for a declarative solution