fixed crash and add a feature

fixed crash: not configured e-mail account
feature：add image attachment