fixes email template image count