rem: f = fopen(path, "w");
add: f = fopen(path, "wb");
context: dumpRImage(char *path, RImage *image){    FILE *f;    int channels = (image->format == RRGBAFormat ? 4 : 3);    f = fopen(path, "w");    if (!f) {	wsyserror(path);	return;    }    fprintf(f, "%02x%02x%1x", image->width, image->height, channels);    fwrite(image->data, 1, image->width * image->height * channels, f);    if (fclose(f) < 0) {	wsyserror(path);    }}