add photo functionality added