Function flip

Source
fn flip(img: &mut Frame, horizontal: bool, vertical: bool)