update image destory algorithm