thumbnails.js: implement update(), fix add() and remove(), remove unnecessary trace