fix jcrop bugs #301