cleaned up opening training-img files and other stuff