Image Classification and Retrieval with Kernel Methods