Updated implementation of movie template renderer.
Added test code.