add vertical flip functionality