ContentType need to be set, but not this way. It should be an input param from front-end.
Cleaning up some unused stuff
Cleaning up
Displaying referenced image