refreshAllImages functionality in factory