Add Piwik image tracker to non-async code