I am using the code as follows to get a new image on a timer using the Glide library.
// This is in onCreate val mainHandler = Handler(Looper.getMainLooper())