fixed image destroy bug