[SVG] Optimization of save/restore usage, Addition of paint methods

1stt commit: Removed some unwated 'this.save()' and 'this.restore()' commands;
2nd and 3rd commits: Added support for paintSolidColorImageMask & paintJpegXObject

Test pdf: Default pdf (liveprogramming.pdf) - page 25