1. Keep the "sessions" short.
2. Use "high value" treats to keep their attention on you!
3. Have an off-camera helper to hold treats above or near the camera to keep your pet's eyes on the camera.
4. Have fun! Don't get frustrated; let this be a fun experience for everyone.
You might have to use a not-so-perfect picture, but it'll be funny and memorable.
Good luck!