SACD images decoding, first working version