formImagePath function changed

to form paths for cms separate project