Upgraded the function of PathUtil, endsWith, containsWith
slightly reconstruct, move img resources to .img package