Build: Move image compression to dist only

Following recommendation for @LaurentGoderre to widen the scope to all images in the dist.