Conversion of images using native JS code where available, with command-line interface