Upgraded imagemin
Fixed flickering when flipping to grid.