DNN-3636 - image tray - refactored code to allow adding file delete functionality