Icon Container
Greatly improved the speed of generating icons inside account and message model. Originally an icon object instance was created every time it was requested from the model. Now it is created and cached only the first time it is requested. Every subsequent call returns the cached instance.
As a side effect the code for generating icons from resource images has been move into one place.