push photo function defined and called