Revert "Rewrote imdecode as manual function to work with Node::Buffer"

This reverts commit 1a01457b2ea3c9e4311f014674ec699c2648fb39.