Removed fixed project locations using os.path calls

Removed fixed project locations using os.path calls and separated
templates and images folders.