system.file.openFile Image Thumbnail

Hello everybody! I am trying to view thumbnail images, similar to the “Image Management” tool, when navigating through files using system.file.openFile. Is there a way I can use the “Image Management” tools for that purpose or modify the openfile tool to display thumbnail images?

Currently using openfile and readFileAsBytes to store images in a SQL database, and have the option to pull and view the image as a popup. The client would like to view the selected image, before it is uploaded, in the dialog box.

Thank you!