Added server example and created getCropData method to panCropUi