A new approach to captioning images based on deep neural networks