Changed "file" in png() to "filename".