[core] fix detection image file with ssl