Added ppi option to printer function