Added to_hash and to_json to Icon class