Add HtmlWriter.write_animated_image() and the Frame class to the API