Updated tile layer to handle different url formats. Closes #117.