added base email template model
you can now set a base email template for a email template

refactored email_message function
it checks if the html email has images and adds them as inline images