Made ImageDecoder public

We need to use this class without using the rest of the library.