use provided filename extension
ever since the A/B unification a few months ago, it always used png. This fixes that. Also, fix the bug where it paraview would have a name pattern then ended in ".png.png".
ever since the A/B unification a few months ago, it always used png. This fixes that. Also, fix the bug where it paraview would have a name pattern then ended in ".png.png".