Made the encoder now return a DCT array more neatly