[FederatedProjetcPilot] Update getImg(str) to support relative path