fixing independent_component function to not use deprecated attributes