fixed bug with image mailer using old pathname