Image size validator.