Fixed infinite loop when deleting groups/entities
Optimised icon file sizes