remove most of the non used images and add mem cache