Implement icon_url_for_size and mark some AsComponent API as deprecated