Modify img check script.
Refactor item loading script.