You probably thought `Image.save()`, not `write()`.