Hi,
I suggest to copy CRM/Contact/Photo module and modify it to use this library.
It's pretty simple module to understand.
You have a second option - create your custom module with hooks to specific places, where you'll create buttons to take photos. For instance you'll have new button in action bar - to take photo directly from webcam when you're in contact.
Adding photos to attachments may be more complicated, but it's possible also. Start with contact 🙂
Regards,
Adam