Deep reinforcement learning as text generator in image captioning