added image cache for the text attachments of image type, which are loaded from files