Fix EPS and JPG image output.