hack to force inversion of all jpegs