Adding Image Optimization to build process

when ImageOptim.app spawns a window, let it finish and then close
from modxcms/revolution#11175
Optimizing Images

to run simply
cd revolution/_build/templates/default
npm install
grunt imageoptim
Added Image Optimization to build process

* origin/pr/11210:
  Optimizing Images
  Adding Image Optimization to build process

Conflicts:
	_build/docs/themes/modx/css/black-tie/images/ui-bg_flat_65_ffffff_40x100.png
	_build/docs/themes/modx/css/black-tie/images/ui-bg_glass_40_111111_1x400.png
	_build/docs/themes/modx/css/black-tie/images/ui-bg_glass_55_1c1c1c_1x400.png
	_build/docs/themes/modx/css/black-tie/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png
	_build/docs/themes/modx/css/black-tie/images/ui-bg_highlight-hard_40_aaaaaa_1x100.png
	_build/docs/themes/modx/css/black-tie/images/ui-bg_highlight-soft_50_aaaaaa_1x100.png
	_build/docs/themes/modx/css/black-tie/images/ui-bg_inset-hard_45_cd0a0a_1x100.png
	_build/docs/themes/modx/css/black-tie/images/ui-bg_inset-hard_55_ffeb80_1x100.png
	_build/docs/themes/modx/css/images/minus.gif
	_build/docs/themes/modx/css/images/plus.gif
	_build/docs/themes/modx/css/images/treeview-default.gif
	_build/docs/themes/modx/css/images/treeview-gray.gif
	_build/docs/themes/modx/css/images/treeview-red.gif
	_build/docs/themes/modx/images/apidocs-logo.png
	_build/docs/themes/modx/images/clear_left.png
	_build/docs/themes/modx/images/icons/class.png
	_build/docs/themes/modx/images/icons/constant.png
	_build/docs/themes/modx/images/icons/function.png
	_build/docs/themes/modx/images/icons/interface.png
	_build/docs/themes/modx/images/icons/method.png
	_build/docs/themes/modx/images/icons/property.png
	_build/docs/themes/modx/images/icons/variable.png
	_build/docs/themes/modx/images/logo.png
	_build/docs/themes/modx/images/logo_old.png
	_build/docs/themes/modx/images/menu-background.png
	_build/docs/themes/modx/images/top-background.png
	_build/docs/themes/modx/images/top-stopper.png
	_build/docs/themes/modx/images/top.png
	_build/templates/default/package.json
	manager/assets/ext3/resources/images/access/grid/hmenu-lock.png
	manager/assets/ext3/resources/images/access/grid/hmenu-unlock.png
	manager/assets/ext3/resources/images/access/slider/slider-bg.png
	manager/assets/ext3/resources/images/access/slider/slider-thumb.png
	manager/assets/ext3/resources/images/access/slider/slider-v-bg.png
	manager/assets/ext3/resources/images/access/slider/slider-v-thumb.png
	manager/assets/ext3/resources/images/access/window/left-corners.png
	manager/assets/ext3/resources/images/access/window/left-right.png
	manager/assets/ext3/resources/images/access/window/right-corners.png
	manager/assets/ext3/resources/images/access/window/top-bottom.png
	manager/assets/ext3/resources/images/default/grid/hmenu-lock.png
	manager/assets/ext3/resources/images/default/grid/hmenu-unlock.png
	manager/assets/ext3/resources/images/default/panel/top-bottom.png
	manager/assets/ext3/resources/images/default/shadow-c.png
	manager/assets/ext3/resources/images/default/shadow-lr.png
	manager/assets/ext3/resources/images/default/shadow.png
	manager/assets/ext3/resources/images/default/slider/slider-bg.png
	manager/assets/ext3/resources/images/default/slider/slider-thumb.png
	manager/assets/ext3/resources/images/default/slider/slider-v-bg.png
	manager/assets/ext3/resources/images/default/slider/slider-v-thumb.png
	manager/assets/ext3/resources/images/default/tabs/tab-strip-bg.png
	manager/assets/ext3/resources/images/default/window/left-corners.png
	manager/assets/ext3/resources/images/default/window/left-right.png
	manager/assets/ext3/resources/images/default/window/right-corners.png
	manager/assets/ext3/resources/images/default/window/top-bottom.png
	manager/templates/default/images/blank.png
	manager/templates/default/images/form/checkbox.png
	manager/templates/default/images/modx-help-logo.png
	manager/templates/default/images/modx-help-logo@2x.png
	manager/templates/default/images/modx-home-logo.png
	manager/templates/default/images/modx-home-logo@2X.png
	manager/templates/default/images/modx-logo.png
	manager/templates/default/images/modx-logo@2x.png
	manager/templates/default/images/modx-theme/button/btn-over.png
	manager/templates/default/images/modx-theme/form/button-bg.png
	manager/templates/default/images/modx-theme/form/button-group-bg.png
	manager/templates/default/images/modx-theme/form/calendar.png
	manager/templates/default/images/modx-theme/form/clear-trigger.png
	manager/templates/default/images/modx-theme/form/combo-bck.png
	manager/templates/default/images/modx-theme/form/dropdown.png
	manager/templates/default/images/modx-theme/form/small-combo-bck.png
	manager/templates/default/images/modx-theme/form/trigger.png
	manager/templates/default/images/modx-theme/gray-grad.png
	manager/templates/default/images/modx-theme/grid/grid3-hd-bg.png
	manager/templates/default/images/modx-theme/grid/grid3-hrow.png
	manager/templates/default/images/modx-theme/grid/group-collapse.png
	manager/templates/default/images/modx-theme/grid/group-expand.png
	manager/templates/default/images/modx-theme/grid/hmenu-lock.png
	manager/templates/default/images/modx-theme/grid/hmenu-unlock.png
	manager/templates/default/images/modx-theme/grid/page-first-disabled.png
	manager/templates/default/images/modx-theme/grid/page-first.png
	manager/templates/default/images/modx-theme/grid/page-last-disabled.png
	manager/templates/default/images/modx-theme/grid/page-last.png
	manager/templates/default/images/modx-theme/grid/page-next-disabled.png
	manager/templates/default/images/modx-theme/grid/page-next.png
	manager/templates/default/images/modx-theme/grid/page-prev-disabled.png
	manager/templates/default/images/modx-theme/grid/page-prev.png
	manager/templates/default/images/modx-theme/grid/refresh.png
	manager/templates/default/images/modx-theme/grid/row-expand-sprite.png
	manager/templates/default/images/modx-theme/panel/title-bg.png
	manager/templates/default/images/modx-theme/panel/tool-sprites-new.png
	manager/templates/default/images/modx-theme/shadow-c.png
	manager/templates/default/images/modx-theme/shadow-lr.png
	manager/templates/default/images/modx-theme/shadow.png
	manager/templates/default/images/modx-theme/slider/slider-bg.png
	manager/templates/default/images/modx-theme/slider/slider-thumb.png
	manager/templates/default/images/modx-theme/slider/slider-v-bg.png
	manager/templates/default/images/modx-theme/slider/slider-v-thumb.png
	manager/templates/default/images/modx-theme/toolbar/bg.png
	manager/templates/default/images/modx-theme/toolbar/tbar-bg.png
	manager/templates/default/images/modx-theme/window/border.png
	manager/templates/default/images/modx-theme/window/left-corners.png
	manager/templates/default/images/modx-theme/window/left-right.png
	manager/templates/default/images/modx-theme/window/right-corners.png
	manager/templates/default/images/modx-theme/window/top-bottom.png
	manager/templates/default/images/restyle/bookMarkBar_bg.png
	manager/templates/default/images/restyle/contentArea_bg.png
	manager/templates/default/images/restyle/corners/accordionPanel/bottom-right.png
	manager/templates/default/images/restyle/corners/accordionPanel/bottom.png
	manager/templates/default/images/restyle/corners/accordionPanel/leftside.png
	manager/templates/default/images/restyle/corners/accordionPanel/rightside.png
	manager/templates/default/images/restyle/corners/accordionPanel/tabs/bottom-left-hover.png
	manager/templates/default/images/restyle/corners/accordionPanel/tabs/bottom-left.png
	manager/templates/default/images/restyle/corners/accordionPanel/tabs/bottom-right-hover.png
	manager/templates/default/images/restyle/corners/accordionPanel/tabs/bottom-right.png
	manager/templates/default/images/restyle/corners/accordionPanel/tabs/icon-close.png
	manager/templates/default/images/restyle/corners/accordionPanel/tabs/icon-open.png
	manager/templates/default/images/restyle/corners/accordionPanel/tabs/top-left-hover.png
	manager/templates/default/images/restyle/corners/accordionPanel/tabs/top-left.png
	manager/templates/default/images/restyle/corners/accordionPanel/tabs/top-right-hover.png
	manager/templates/default/images/restyle/corners/accordionPanel/tabs/top-right.png
	manager/templates/default/images/restyle/corners/accordionPanel/top-right.png
	manager/templates/default/images/restyle/corners/accordionPanel/top.png
	manager/templates/default/images/restyle/corners/accordionTabs/bottom-hover.png
	manager/templates/default/images/restyle/corners/accordionTabs/bottom-right-hover.png
	manager/templates/default/images/restyle/corners/accordionTabs/bottom-right.png
	manager/templates/default/images/restyle/corners/accordionTabs/bottom.png
	manager/templates/default/images/restyle/corners/accordionTabs/icon-down.png
	manager/templates/default/images/restyle/corners/accordionTabs/icon-up.png
	manager/templates/default/images/restyle/corners/accordionTabs/top-hover.png
	manager/templates/default/images/restyle/corners/accordionTabs/top-right-hover.png
	manager/templates/default/images/restyle/corners/accordionTabs/top-right.png
	manager/templates/default/images/restyle/corners/accordionTabs/top.png
	manager/templates/default/images/restyle/corners/contentArea/bottom-right.png
	manager/templates/default/images/restyle/corners/contentArea/leftside.png
	manager/templates/default/images/restyle/corners/contentArea/rightside.png
	manager/templates/default/images/restyle/corners/contentArea/top-right.png
	manager/templates/default/images/restyle/corners/contentArea/top.png
	manager/templates/default/images/restyle/corners/resources/bottom-right.png
	manager/templates/default/images/restyle/corners/resources/bottom.png
	manager/templates/default/images/restyle/corners/resources/leftside.png
	manager/templates/default/images/restyle/corners/resources/rightside.png
	manager/templates/default/images/restyle/corners/resources/top-right.png
	manager/templates/default/images/restyle/corners/resources/top.png
	manager/templates/default/images/restyle/header_background.png
	manager/templates/default/images/restyle/header_sub.png
	manager/templates/default/images/restyle/i/bg-drop-last.png
	manager/templates/default/images/restyle/i/bg-drop.png
	manager/templates/default/images/restyle/i/bg-tree.png
	manager/templates/default/images/restyle/i/bg-x-accordion-hd.png
	manager/templates/default/images/restyle/i/bg-x-accordion-hd2.png
	manager/templates/default/images/restyle/i/collapse.png
	manager/templates/default/images/restyle/i/corner-tree-16.png
	manager/templates/default/images/restyle/i/corner-tree-20.png
	manager/templates/default/images/restyle/i/corner-tree.png
	manager/templates/default/images/restyle/icons/application_cascade.png
	manager/templates/default/images/restyle/icons/application_osx_terminal.png
	manager/templates/default/images/restyle/icons/arrow_down.png
	manager/templates/default/images/restyle/icons/arrow_rotate_anticlockwise.png
	manager/templates/default/images/restyle/icons/arrow_up.png
	manager/templates/default/images/restyle/icons/calendar.png
	manager/templates/default/images/restyle/icons/category.png
	manager/templates/default/images/restyle/icons/chunk.png
	manager/templates/default/images/restyle/icons/compress.png
	manager/templates/default/images/restyle/icons/computer.png
	manager/templates/default/images/restyle/icons/context.png
	manager/templates/default/images/restyle/icons/css.png
	manager/templates/default/images/restyle/icons/cup.png
	manager/templates/default/images/restyle/icons/database.png
	manager/templates/default/images/restyle/icons/database_table.png
	manager/templates/default/images/restyle/icons/date.png
	manager/templates/default/images/restyle/icons/disk.png
	manager/templates/default/images/restyle/icons/elements.png
	manager/templates/default/images/restyle/icons/elements2.png
	manager/templates/default/images/restyle/icons/exclamation.png
	manager/templates/default/images/restyle/icons/feed.png
	manager/templates/default/images/restyle/icons/file_manager.png
	manager/templates/default/images/restyle/icons/file_upload.png
	manager/templates/default/images/restyle/icons/film.png
	manager/templates/default/images/restyle/icons/folder.png
	manager/templates/default/images/restyle/icons/folder_add.png
	manager/templates/default/images/restyle/icons/folder_explore.png
	manager/templates/default/images/restyle/icons/folder_page.png
	manager/templates/default/images/restyle/icons/folder_page_add.png
	manager/templates/default/images/restyle/icons/folder_page_white.png
	manager/templates/default/images/restyle/icons/group.png
	manager/templates/default/images/restyle/icons/group_add.png
	manager/templates/default/images/restyle/icons/group_delete.png
	manager/templates/default/images/restyle/icons/group_edit.png
	manager/templates/default/images/restyle/icons/html_valid.png
	manager/templates/default/images/restyle/icons/layout_add.png
	manager/templates/default/images/restyle/icons/layout_edit.png
	manager/templates/default/images/restyle/icons/layout_header.png
	manager/templates/default/images/restyle/icons/link.png
	manager/templates/default/images/restyle/icons/link_add.png
	manager/templates/default/images/restyle/icons/link_break.png
	manager/templates/default/images/restyle/icons/lock.png
	manager/templates/default/images/restyle/icons/lock_add.png
	manager/templates/default/images/restyle/icons/lock_break.png
	manager/templates/default/images/restyle/icons/lock_delete.png
	manager/templates/default/images/restyle/icons/lock_edit.png
	manager/templates/default/images/restyle/icons/lock_go.png
	manager/templates/default/images/restyle/icons/lock_open.png
	manager/templates/default/images/restyle/icons/lorry.png
	manager/templates/default/images/restyle/icons/lorry_add.png
	manager/templates/default/images/restyle/icons/lorry_delete.png
	manager/templates/default/images/restyle/icons/lorry_error.png
	manager/templates/default/images/restyle/icons/lorry_flatbed.png
	manager/templates/default/images/restyle/icons/lorry_go.png
	manager/templates/default/images/restyle/icons/new-static-resource.png
	manager/templates/default/images/restyle/icons/package.png
	manager/templates/default/images/restyle/icons/page_white.png
	manager/templates/default/images/restyle/icons/page_white_acrobat.png
	manager/templates/default/images/restyle/icons/page_white_coldfusion.png
	manager/templates/default/images/restyle/icons/page_white_copy.png
	manager/templates/default/images/restyle/icons/page_white_database.png
	manager/templates/default/images/restyle/icons/page_white_excel.png
	manager/templates/default/images/restyle/icons/page_white_flash.png
	manager/templates/default/images/restyle/icons/page_white_gear.png
	manager/templates/default/images/restyle/icons/page_white_go.png
	manager/templates/default/images/restyle/icons/page_white_key.png
	manager/templates/default/images/restyle/icons/page_white_link.png
	manager/templates/default/images/restyle/icons/page_white_magnify.png
	manager/templates/default/images/restyle/icons/page_white_php.png
	manager/templates/default/images/restyle/icons/page_white_powerpoint.png
	manager/templates/default/images/restyle/icons/page_white_word.png
	manager/templates/default/images/restyle/icons/picture.png
	manager/templates/default/images/restyle/icons/picture_add.png
	manager/templates/default/images/restyle/icons/plugin.png
	manager/templates/default/images/restyle/icons/plugin2.png
	manager/templates/default/images/restyle/icons/property-set.png
	manager/templates/default/images/restyle/icons/refresh.png
	manager/templates/default/images/restyle/icons/ruby.png
	manager/templates/default/images/restyle/icons/sb_expand.png
	manager/templates/default/images/restyle/icons/script_gear.png
	manager/templates/default/images/restyle/icons/snippet.png
	manager/templates/default/images/restyle/icons/static-resource.png
	manager/templates/default/images/restyle/icons/static-resources.png
	manager/templates/default/images/restyle/icons/style_delete.png
	manager/templates/default/images/restyle/icons/symlink.png
	manager/templates/default/images/restyle/icons/table.png
	manager/templates/default/images/restyle/icons/template.png
	manager/templates/default/images/restyle/icons/text_align_center.png
	manager/templates/default/images/restyle/icons/text_align_justify.png
	manager/templates/default/images/restyle/icons/text_align_left.png
	manager/templates/default/images/restyle/icons/text_align_right.png
	manager/templates/default/images/restyle/icons/text_allcaps.png
	manager/templates/default/images/restyle/icons/text_bold.png
	manager/templates/default/images/restyle/icons/text_columns.png
	manager/templates/default/images/restyle/icons/text_dropcaps.png
	manager/templates/default/images/restyle/icons/text_heading_1.png
	manager/templates/default/images/restyle/icons/text_heading_2.png
	manager/templates/default/images/restyle/icons/text_heading_3.png
	manager/templates/default/images/restyle/icons/text_heading_4.png
	manager/templates/default/images/restyle/icons/text_heading_5.png
	manager/templates/default/images/restyle/icons/text_heading_6.png
	manager/templates/default/images/restyle/icons/text_horizontalrule.png
	manager/templates/default/images/restyle/icons/text_indent.png
	manager/templates/default/images/restyle/icons/text_indent_remove.png
	manager/templates/default/images/restyle/icons/text_italic.png
	manager/templates/default/images/restyle/icons/text_kerning.png
	manager/templates/default/images/restyle/icons/text_letter_omega.png
	manager/templates/default/images/restyle/icons/text_linespacing.png
	manager/templates/default/images/restyle/icons/text_list_bullets.png
	manager/templates/default/images/restyle/icons/text_list_numbers.png
	manager/templates/default/images/restyle/icons/text_lowercase.png
	manager/templates/default/images/restyle/icons/text_padding_bottom.png
	manager/templates/default/images/restyle/icons/text_padding_left.png
	manager/templates/default/images/restyle/icons/text_padding_right.png
	manager/templates/default/images/restyle/icons/text_padding_top.png
	manager/templates/default/images/restyle/icons/text_replace.png
	manager/templates/default/images/restyle/icons/text_signature.png
	manager/templates/default/images/restyle/icons/text_smallcaps.png
	manager/templates/default/images/restyle/icons/text_strikethrough.png
	manager/templates/default/images/restyle/icons/text_subscript.png
	manager/templates/default/images/restyle/icons/text_superscript.png
	manager/templates/default/images/restyle/icons/text_underline.png
	manager/templates/default/images/restyle/icons/text_uppercase.png
	manager/templates/default/images/restyle/icons/trash.png
	manager/templates/default/images/restyle/icons/trash_full.png
	manager/templates/default/images/restyle/icons/tv.png
	manager/templates/default/images/restyle/icons/unzip.png
	manager/templates/default/images/restyle/icons/user.png
	manager/templates/default/images/restyle/icons/user_add.png
	manager/templates/default/images/restyle/icons/user_delete.png
	manager/templates/default/images/restyle/icons/user_edit.png
	manager/templates/default/images/restyle/icons/user_go.png
	manager/templates/default/images/restyle/icons/weblink.png
	manager/templates/default/images/restyle/manager-loginscreen-bg.png
	manager/templates/default/images/restyle/manager-loginscreen-form-bg.png
	manager/templates/default/images/restyle/resoucePanel_bg.png
	manager/templates/default/images/style/accept.png
	manager/templates/default/images/style/close.png
	manager/templates/default/images/style/delete.png
	manager/templates/default/images/style/download.png
	manager/templates/default/images/style/go-next.png
	manager/templates/default/images/style/home.png
	manager/templates/default/images/style/info.png
	manager/templates/default/images/style/menu_sep.png
	manager/templates/default/images/style/modx-logo-color.png
	manager/templates/default/images/style/modx-logo-header.png
	manager/templates/default/images/style/search.png
	manager/templates/default/images/style/separator/menu_current.png
	manager/templates/default/images/style/separator/menu_sep.png
	manager/templates/default/images/style/sidebar-bg.png
	manager/templates/default/images/style/sidebar-tabs-bg.png
	manager/templates/default/images/style/vtabs-bg.png
	manager/templates/default/images/tree/filetree/application.png
	manager/templates/default/images/tree/filetree/application_cascade.png
	manager/templates/default/images/tree/filetree/application_double.png
	manager/templates/default/images/tree/filetree/application_go.png
	manager/templates/default/images/tree/filetree/arrow_down.png
	manager/templates/default/images/tree/filetree/arrow_left.png
	manager/templates/default/images/tree/filetree/arrow_refresh.png
	manager/templates/default/images/tree/filetree/arrow_right.png
	manager/templates/default/images/tree/filetree/arrow_up.png
	manager/templates/default/images/tree/filetree/cdimage.png
	manager/templates/default/images/tree/filetree/cross.png
	manager/templates/default/images/tree/filetree/delete.png
	manager/templates/default/images/tree/filetree/exec_wine.png
	manager/templates/default/images/tree/filetree/file_locked.png
	manager/templates/default/images/tree/filetree/folder_add.png
	manager/templates/default/images/tree/filetree/font_truetype.png
	manager/templates/default/images/tree/filetree/html.png
	manager/templates/default/images/tree/filetree/image.png
	manager/templates/default/images/tree/filetree/info.png
	manager/templates/default/images/tree/filetree/java_src.png
	manager/templates/default/images/tree/filetree/message.png
	manager/templates/default/images/tree/filetree/pdf_document.png
	manager/templates/default/images/tree/filetree/pencil.png
	manager/templates/default/images/tree/filetree/pps.png
	manager/templates/default/images/tree/filetree/quicktime.png
	manager/templates/default/images/tree/filetree/shellscript.png
	manager/templates/default/images/tree/filetree/sound.png
	manager/templates/default/images/tree/filetree/source.png
	manager/templates/default/images/tree/filetree/source_c.png
	manager/templates/default/images/tree/filetree/source_j.png
	manager/templates/default/images/tree/filetree/source_php.png
	manager/templates/default/images/tree/filetree/source_s.png
	manager/templates/default/images/tree/filetree/spreadsheet_document.png
	manager/templates/default/images/tree/filetree/txt.png
	manager/templates/default/images/tree/filetree/vcalendar.png
	manager/templates/default/images/tree/filetree/vectorgfx.png
	manager/templates/default/images/tree/filetree/video.png
	manager/templates/default/images/tree/filetree/wordprocessing.png
	manager/templates/default/images/tree/filetree/zip.png
	manager/templates/default/images/tree/link_go.png
	manager/templates/default/images/tree/sitemap.png
	setup/assets/images/box_header_background.png
	setup/assets/images/downloadbar_background.png
	setup/assets/images/downloadbar_separator.png
	setup/assets/images/header_background.png
	setup/assets/images/icon_designer.png
	setup/assets/images/icon_developer.png
	setup/assets/images/icon_empty_screenshot.png
	setup/assets/images/icon_features_list.png
	setup/assets/images/icon_open_source.png
	setup/assets/images/icon_rss.png
	setup/assets/images/icon_screencasts.png
	setup/assets/images/icon_server.png
	setup/assets/images/icon_warning.png
	setup/assets/images/modx-logo.png
	setup/assets/images/modx_logo_header.png
	setup/assets/images/modx_mgr_screenshot.png
	setup/assets/images/quote_bubble.png
	setup/assets/images/screencast_placeholder.png
	setup/assets/images/whatwhyhow_arrow.png