fix some bugs in linear color mapper
restrict preview size
small spectrogram improvements