cli: fix broken thumbnail strides by using exactly the same rescaling code as the cache internally.
cli: limit created thumbnail to <= mip2 and no skulls