Added test case for gif image (mode L): optimization turned on, but not needed.