- typo fix that sometimes caused coredumps and sometimes sligntly incorrect palette on optimized downsampling