Code to email photo