Added SendGrid, emailing capability, and updated image code