added z axis to canvas for rotation, removed unrequired arguments