fixed TmxTileSet getRect function

Fixed getRect function to return with and height of the rectangle.
Fixed getRect function to take account on firstGid.