Several small fixes

This pull request fixes emoji in email notifications (code by @kotashiratsuka) and adds an additional `class` attribute to the img element.
I've tested this in production and it works well :)