add api for auto page crop