Simple pixel reader for JPEG and PNG files in Node.js