Here is a security tip to help prevent getting hacked. Don't allow people to upload avatars or use avatars stored on another server. Make them use the avatars available on your server.
What security issue is there to let people link to avatars on a different server? Don't think I've ever run or used a server that didn't allow that, or do you mean some other way of using them on another server?