added image cache for the text attachments of image type, which are loaded from files
run relayoutText only if height or width of frame has been changed