Fix crash when transforming image
Fix crash when transforming image

- Added transformer.on('error') to handle the error instead of
try/catch

GoogleChromeLabs/gulliver,GoogleChromeLabs/gulliver,GoogleChromeLabs/gulliver