added functional tile-layer plugin and convert tiles to data-url/base64 fro later storage