jmp_image_save takes now parameter wich is max distance between colors