gd: provide imageflip with system libgd when available