At present, this can be done using the same mechanism one would use to insert a graphic into a WeBWorK problem when writing regular WeBWorK problems. (And this is what is done below.) In the future, there will be a nicer option that will be able to make use of PTX's latex-image-code. This requires some WeBWorK development first, which is underway.