Method of removing moving shadow based on texture