Renamed function getEvents in imagerecorder to logMouseEvents.
Since this function only logs events and does not return anything,
the "getEvents" name was slightly confusing/misleading.