As part of a basic investigation, an officer can photograph you with or without your consent.  Obtaining a visual recording is not illegal.  If he asked you to give a statement against your will, then that would be illegal.  If you had been arrested or instantered, then the officer would have been able to photograph you anyhow.  The main thing is that the officer didn't violate any of your constitutional rights.