Fix cropping initialization parameters at edit page and handle null cases