added photo JSON downloading