added support for imagemin

made a couple enhancements. tested and working on my local environment. thanks for the great start!