     #   $IMAGEOPTIM
     #*------------------------------------*/
     imageoptim:
-      files: [
-        '<%= pkg.path.img %>'
-      ],
       options:
-        # also run images through ImageAlpha.app before ImageOptim.app
         imageAlpha: true,
-        # also run images through JPEGmini.app after ImageOptim.app
         # jpegMini: true,
-        # quit all apps after optimisation
         quitAfter: true
+      files:
+        ['<%= pkg.path.img %>']
 
 
     #*------------------------------------*\

          dest: "src"
          syncDestIgnoreExcl: true

      # sync local with remote
      down:
        options:
          src: "<%= pkg.domain.username %>@<%= pkg.domain.name %>:public_html/"
          dest: "src"
          syncDestIgnoreExcl: true

      # dry-run up
      updrystaging:
        options:
          args: ["--dry-run", "--verbose"]
          src: "src/"
          dest: "public_html/staging.<%= pkg.domain.name %>"
          host: "<%= pkg.domain.username %>@<%= pkg.domain.name %>"

      # sync remote with local
      upstaging:
        options:
          src: "src/"
          dest: "public_html/staging.<%= pkg.domain.name %>"
          host: "<%= pkg.domain.username %>@<%= pkg.domain.name %>"

      # dry-run up
      updry:
        options:
          args: ["--dry-run", "--verbose"]

          dest: "public_html"
          host: "<%= pkg.domain.username %>@<%= pkg.domain.name %>"

      # sync to pro
      up:
        options:
          src: "src/"
          dest: "public_html"
          host: "<%= pkg.domain.username %>@<%= pkg.domain.name %>"

      # dry-run deploy to staging
      stagingupdry:
        options:
          args: ["--dry-run", "--verbose"]
          src: "src/"
          dest: "public_html/staging.<%= pkg.domain.name %>"
          host: "<%= pkg.domain.username %>@<%= pkg.domain.name %>"

      # deploy local changes to staging
      stagingup:
        options:
          src: "src/"
          dest: "public_html/staging.<%= pkg.domain.name %>"
          host: "<%= pkg.domain.username %>@<%= pkg.domain.name %>"


