set self.palette256 if palette256 argument is None

This avoids an AttributeError in Core.py:line529