Improved support for images in messages