You could write out the checked attribute of the checkbox if you are dynamically displaying the different photo information which would accomplish what you're looking for. Otherwise, you could just display only the ones that need to be displayed and only update those rows instead.
I'm not sure I'd be able to get you the files unless I know which ones you're looking for specifically. Which solution recipe are you trying to follow?