config imagemagik and send mail