Library for converting an image reference to an HTML table based mosaic