Saves images if graphics are turned on