Pixel validation for images