Map load bug fix

Fixed a bug that was causing a crash when loading the tileset image.