ImageMetrics depends on EventLogging

The qunit job for ImageMetrics was not working at all, turns out it
depends on EventLogging extension to be added.

Note: this also add EventLogging as a dependency when running PHPUnit
tests.

Bug: 71782
Change-Id: I5e823d902a4656239b7f41ff02f57c3f9846dab7