fixed minor bug with unsupported texture file formats