change figures to jpg