Graph Neural Networks for Image Classification and Reinforcement Learning using Graph representations