Solved the image path issues by using a variable for the path