improve dependencies for image thumbnails and thumbnail component