changed imagepath to direct path, starting from mainclass