the process of how a printer works