update static function getImageThumbnails definition