A New Approach to Descriptors Generation for Image Retrieval by Analyzing Activations of Deep Neural Network Layers