image path bug fixed and smtp enabled