Automate image optimisation

(Mergeable version of #123)
Yah.  Exactly what went through my head.  I chose to go with no for now but I am wondering whether it's actually not a big deal.  Travis/Codeship is pretty fast.