fixed incompatibility with luaJit and small bugs

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