bugfixes, changed email class to enable downloaded photo email