Added basic email system and canvasToImage functionality