Fix bug in image handling that caused images to fail to load on some email clients (in particular Windows Phone 8).