It doesn't make sense to allow fewer than 1 image in any dimension of a scan. Currently, supplying 0 gives a division by zero error. I've added min="1" to each control.