program to crop the image