loca table fixes and added RLE encoding

it was mistake