private void LoadContent(int img) {
        try {
            if (img == 0) {
                URL trackImgUrl0 = this.getClass().getResource("/raceresources/resources/images/track0.png");
                trackImg = ImageIO.read(trackImgUrl0);
            } else if (img == 1) {
                URL trackImgUrl1 = this.getClass().getResource("/raceresources/resources/images/track1.png");
                trackImg = ImageIO.read(trackImgUrl1);
            } else if (img == 2) {
                URL trackImgUrl2 = this.getClass().getResource("/raceresources/resources/images/track2.png");
                trackImg = ImageIO.read(trackImgUrl2);
            } else if (img == 3) {
                URL trackImgUrl3 = this.getClass().getResource("/raceresources/resources/images/track3.png");
                trackImg = ImageIO.read(trackImgUrl3);
            } else if (img == 4){
                URL trackImgUrlEnd = this.getClass().getResource("/raceresources/resources/images/track0end.png");
                trackImg = ImageIO.read(trackImgUrlEnd);
            }

            //get widht of the track
            //courseImgWidth = trackImg.getWidth();
        } catch (IOException ex) {
            Logger.getLogger(Course.class.getName()).log(Level.SEVERE, null, ex);
        }
    }