Moved saveBlob to lib