To generate sprite images