Add palette256 option which has PIL convert all tiles to 256 colors to make tiles smaller (save tile space and download time).
Add palette256 to the API file.