Refactor

Rename packages, modules and classes 
ESC and GS constants 
add print_image() function 
add system exit on testpage script