Small tweak to fromBlob function