fixed incompatiblity with luaJit

fixed incompatiblity with luaJit
changed deprecated tile_images to tiles
fixed wield image texture not found