Upgraded sendmails.py to support mime embedded images