fix more resetting loop stuff. Still a problem with loop images