not sure resetMatrix() is equivalent to push() pop() that might be the issue.
As per the reference
pushMatrix()
Pushes the current transformation matrix onto the matrix stack. Understanding pushMatrix() and popMatrix() requires understanding the concept of a matrix stack. The pushMatrix() function saves the current coordinate system to the stack and popMatrix() restores the prior coordinate system. pushMatrix() and popMatrix() are used in conjunction with the other transformation functions and may be embedded to control the scope of the transformations.
these are quite different in their functionality likelihood is you are drawing the items but the coordinate system is no longer centered around the canvas.