convert scale.c to scale.im so we have 8 bit/sample and double/sample