Implemented automated spriting for v4.0
Merge pull request #3575 from LaurentGoderre/v4-sprites

Implemented automated spriting for v4.0