VID-1963 Implented new thumbnailer in gallery code