new image scaling alg. added.