add implementation of image restore and image color2gray and image invert
add implementation of image flip
make it clear by rewriting the comment to English
add implementation of affine and perspective transform
add implementation of histogram and histequalize, but got memory leaks