fixing bounding box scaling Dynamicprogram
Checking resize
Adding pdf visualization
some change