load images by click// fix bugs