Convert ImageParser#parse_html to a class method