Changes for SketchFactory. Fixed bounding box logic.