Number validation for image effects