Add download photo function