Cleaned up functions to add tiles from disk to mbtiles based on different tiling schemes
Fixed extention check