This function displays an image
Arguments
- file_path
if file_path is a character string, then a shiny application is utilized. If file_path is a matrix, data.frame OR a 3-dimensional array (where the third dimension is equal to 3) then the grid.raster function of the base grid package is used.
- clear_viewer
a boolean. If TRUE then the previous image will be removed in the viewer before displaying the next one