Flushes any image resource when hiding gif images in chat conversation panel, prevents leaking "Image Animator" threads.
Fixes removing the first message when chat is too big, the remove was matching wrong element and was leaving dates without names.
Skips some String objects creation and use StringBuilder where possible.