Fixed memory leak issues. Updated MBTiles rendering.