As suggested in the given link. It is much easier and efficient, if you subscribe to the image topic and it can be processed in your callback function. This link might be helpful.
Also here is an example from my tutorial. i have used opencv to process the image stream. Hope this is helpful.