gallery image diaply modal and other cleanup and finalization