simplify test for image size option