more refactoring/cleanup
renamed pageToImage function to pageToPixel
got rid of unnecessary stack functions newStackImage,  newStack as stack functionality got pushed up to tools layer
added support for high dpi displays like retina