fixes image loading from an external tileset