gl2: move vertical image flip to internal/util