added image previews in messages