use php to create sprite