swapping to PNG from jpeg