Added support for images from BytesIO streams.

Issue #118.