got imagemin working as expected. Fixes #1