the result image must keep th size of the original image