delete function that was moved to IconFactory