[photos] Assign the _loading ivar in setLoading:

Closes #343.