a major update. support added for all sample depths (1-16), greyscale and indexed images. interleaved images are supported as well.