Added view photo functionality