fixed bug

1.fixed bug about image files display error in dir tools
2.fixed bug about functions is declared