updated background to use sprite class