Implements a factory model for generating sprites.