Transform coding of images