added define for have jpeg