Fixed memory leak when srcImage is a Blob