Fixed xresolution and yresolution, resolutionunit set to none, and removed using namespace std