It appears that it is impossible to rotate or resize the hat once it is in a certain position because the control is inaccessible and offscreen.
Is there a better way to fix this other than having to refresh the page and losing the rotation and size of the hat (as I ended up doing)? Thanks.