Efficient Image and Video Representations for Retrieval