nearly finished the image management