Fixed reversal of height width in dimension checks for cropboxes