script to generate card images