fixed the save fig code

added the two lines for resolution of the picture