Cropping the image this way should be doable with the Viewer SDK (see this blog post), although it would be quite a bit of work.
Here's a different idea, how about cropping the screenshot after it's been generated by the Viewer SDK? You could render the screenshot with a blank white background, and later you could have a small piece of code that would cut out all the white pixels above/below/next to your floorplan.