Flow: add calls to create pyramids conditionally for cv >2.4.1

seems like pre 2.4.1 there wasn't the possibility of passing pyramids to that function so i've just put some ifdefs. 

this also fixes a problem with how the features where being reseted