Implement server logic to crop image.