Bug with tk->imagefile pointer fixed