Fix jpeg errors by overriding the standard PIL version