implemented validation for invalid textures