added conversion from blobs to images