Fixing error with drawing map (WIP)

Using map->width / map->height is wrong, shall used the passed
parameters.