validation for images jpg, png, gif - refs #5637