Reverting $imageDirectories back to original values.