fixed an issue where images wouldn't be displayed on emails