Improve upon /customavatar and restrict images to png and gif