MDL-23044 Support for storing thumbnails in repository filesystem