your PhotoImgLib table would need to have a column for the users ID and a column for selected.
by default the selected column will be set to 0
when an image is clicked, it should trigger an update behavior that sets the selected column for that image to 1.
you can use an if statement to show the selected message it the selected column is equal to 1