converting cropped plots to png