Store cache using WMTS standart

And add a flip_y method.