Add support for image decoders.

Thanks to this, we can now use any image in video.add_image as requested
in #25.