Fix the outofbound bug when random select template.
Add two template for three pictures.