Set different ImageMetrics sampling factor for logged-in users

Change-Id: Idb92d7432b03c652146cd7d89811586051e2fdbf
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/978