Added the real printing mechanism

Added the real printing mechanism, still haven't yet connect the whole
thing with print function in pic viewer and pdf viewer
Connect pic and pdf viewer with printing

User can choose how many copies to print from pic viewer and pdf viewer
now