added x and y param to draw function for maps