merge ImageDirectory and ImageThumbLoader