fixed a bug
fixed saving and loading imgs