Test write_animated_image() and the Frame class in utils/test-api