Add parameters to set horizontal/vertical flip
Add parameters to set horizontal/vertical flip