PHP script with front-end to generate packed sprites