add auto remove photo and snding email functional