Optimization of save/restore usage
Added paintSolidColorImageMask
Added paintJpegXObject
Merge pull request #4999 from pramodhkp/saverestore

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