How to implement Avatars plugin to my custom coded profile page

Hello,
please, can you send me php code for implementing plugin to my template? I need code for add avatar upload to my "edit profile" page and also php code for showing this avatar on "user profile" page.

We're using special plugin for user frontend login, reg. and edit, so I need to add this code by myself (it doesn't work automatically).

Thanks.