If the pictures were valued continuously uniformly from $0$ to $100$, then you could take the approach:
- If you are in the last room, take the picture. It has an expected value of $50$. Call this $E_{100}$
- If you are in an earlier room, take the picture if its value is greater than the expected value of moving to the next room. So if the expected value of the being in the next room is $E_{n+1}$ then the probability of taking the picture in room $n$ is $\frac{100-E_{n+1}}{100}$ and its conditional expected value would be $\frac{100+E_{n+1}}{2}$, so the expected value of being in room $n$ would be $E_{n}=\dfrac{100^2+ E_{n+1}^2}{200}.$
So you can calculate the expected value recursively. If you did, the expected value of being in the first room seems to be about $98.12$.
But your question seems to suggest the values are discrete integers from $1$ to $100$. So it gets a little more complicated.
- If you are in the last room, take the picture. It has an expected value of $50.5$. Call this $D_{100}$
- If you are in an earlier room, take the picture if its value is greater than the expected value of moving to the next room. So if the expected value of the being in the next room is $D_{n+1}$ then the probability of taking the picture in room $n$ is $\frac{100-\lfloor D_{n+1}\rfloor}{100}$ and its conditional expected value would be $\frac{100+\lfloor D_{n+1}\rfloor+1}{2}$, so the expected value of being in room $n$ would be $D_{n}=\dfrac{10100+ \lfloor D_{n+1}\rfloor(2D_{n+1}-\lfloor D_{n+1}\rfloor-1)}{200}.$
This time the expected value of being in the first room seems to be about $98.61$.