Write to file, manually set graph width and height