Hi, Prachi,
Even I had a similar problem, I found that Images cannot be displayed directly in a shiny image object. Then I tried passing the path to a list and then display the object. it worked!. The 2nd method was working for me.
Try using the below steps.
image_read("path").
or
src = "[path to image]".
img = list(src, contentType = "Images/jpeg")