path change to jpeg resize