tensorflow issue with image reading
For tensorflow 1.x we need to execute 

tf.enable_eager_execution() 


to see results before creating a tf session.

For tf 2.x eager execution is enabled by default.