I can't seem to find something that relates to my specific scenario - I'm aware of how to display an image under normal circumstances. However, due to the nature of the system I'm working on, a lot of the data is sensitive in nature (including images) so I anonify the files in storage (stripping the filename and extension to be stored in the database and mapped to the file on download).
Since the files are anonified - throwing the storage path at the img tag results in the generic icon (presumably due to the lack of a file extension). Is there a way of masking the mapping over the storage path to make it work, or do I need to set up some form of webservice that delivers the image as an inline response?