"grayscale_img": added CommonJS support (r4)