Implemented all avatar functions. And now we wait!

Waiting for this to be merged:
https://github.com/irungentoo/toxcore/pull/1029
Removed some image formats
FIxed array size related stuff

how silly of me