A method to improve the results of image enhancement is proposed. The idea of the method is to warp pixel grid by moving pixels towards the nearest image edges. It makes edges sharper while keeping textured areas almost intact. Experimental applications of the proposed method for image enhancement algorithms show the improvement of image quality.