added jpeg reading/writing to oil, tileset