restored the toggle photo function that got lost at some point