handle error case when operation does not exist
If gm toBuffer has an error, do not continue.
Also remove console.log used to investigate semaphores.
Update README