adding image, adding javascript to perform email operation