Fixed an issue with images in emails