device printing

PNG printing code is added