Corrects the bug of collection manager.
Adds "toString" function in role and image entity.