Save Camera to a pickle file, given a filename.

def to_pickle(self, filename):
        """Save Camera to a pickle file, given a filename."""
        with open(filename, 'wb') as f:
            pickle.dump(self, f)