Add validation to images