added missing function pixel_diff to image.h.