fix bug #90
fix bug #90 + delete old img