added photo functionailty