Fix jpeg generation to fix travis...