Fixing texture loading

Re-wrote GetTextures method and added all the necessary classes for its
operation.