This function inside storage.addImage() was just recently modified by bug 949941to fix an important memory leak and another problem.  That patch landed on master, and it appears that camera-new-features has not been rebased on master.  When it is rebased, your patch will not apply anymore. 

Sorry about that! You'll have to modify this slightly.  The new code will save the file and then use the new blob from storage so that we are always using a file-backed blob rather than a memory-backed blob.  As it stands now, this code leaks hundreds of kilobytes of memory for each photo you take because it is using memory-backed blobs.  Fortunately, the fix has been made, and you'll just have to rebase your patch.