give get_avatar the option to save output to file