Added initialization for sprite atributes.