support ratio
set_crop with ratio constraint