Implemented automated spriting for v4.0