Add image optimization task

This currently fails due to a bug with jpegtran failing to optimize
jpg images, as soon as that gets fixed this should be merged in master
Remove custom imgmin task

The new jpegtran version correctly ovewrites images so there's no need
to clean the optimized folder before processing images
Add image optimization functionality