reversed order of validation and imagemin tasks, fixed imagemin problem