added email and message framework and multiple photo selection