It is not illegal to take pictures of an OOS fish as long as no extra time was taken in the fish's release.
The law states that an OOS fish must be released immediately. There is no language that mentions cameras or pictures, however the law does state "immediately", not "immediately after a quick picture".
So, if you took the time to get your camera and pose for a few pictures, thereby keeping the fish in your possession even for a minute longer than necessary, you technically would be breaking the law in that scenario. However, if someone else with you takes the pictures while you are in the process of releasing it, and no extra time was therefore taken in releasing the fish, it would be totally legal.
As for a CO going through your camera, I suspect that a warrant would be needed as that would be a charter violation---> "Everyone has the right to be secure against unreasonable search or seizure."
To be clear, while we do not encourage illegal activities, this forum allows pictures of OOS fish to be posted on the forum at our discretion. OFF staff do not judge whether or not someone's picture was a violation of the law. That is for the courts to decide. Until such time as it becomes illegal to post OOS fish pictures on the internet, we will not dictate what fish pictures can be posted. Post them at your own risk.
The only restriction OFF places on posting OOS fish pictures is that they will not count as a first report if the poster makes it clear that he was targeting OOS fish.