finally, first working version.

- fix bug in ImageLoader