Abstracted the texture loading and added a test object