correction of jpg