Added a view image function to complete the example controller function and show the actual image created