Compile assets in production
Extract github image switching logic to separate file