Image Categorization and Search via a GAT Autoencoder and Representative Models