add meta to attachment json, show thumbnails on leaflet map