Improve sprite helper mixin.