Fixed possible problems with ImageDirectoryAdapter being notified not on UI thread.