adapted FlipImg to send pass with maxoffset after replacement at end of body
call it 0.51