Fix core sync for image sub directories