Added random avatar function. Replaced old helm function with a new control