corrected logical error in validPixelExpression