Fixed memory leak when srcImage is a Blob

The summary says it all :)