New lib
Save img and save pdf function