Classes imlementing "Image" should have "toByteArray" method.
"Encoder" and "Decoder" interfaces are needless.
"GifEncoder" encodes bitmap images to GIF with specified options.