image encoding for email, pack method for email, send process