fixed wrong coordinate space for drawing