Bugfixes and features added

fix a problem with textures other than 0, 0 being out of bounds of the
Map and a few others