minor bugs fixed, image size reduced