support primary images with same name as original file