refactoring of CResourceManager
close #15 fix add text to rectangle