[cyril] created factory methods for sprite.