Draws a square when mouse click in canvas