Sample code of Image Processing