Added a config class for sprites as an extra parameter