Automatic category selection when loading new images