Auto-reduce number of colors in indexed images on drag and drop