public Parallax(BackgroundManager bm, Registry rg, String im, String t, int x, int y, int px, int py, float ms, float v) {
        backgroundManager = bm;
        registry = rg;

        type = t;
        mapX = initialMapX = x;
        mapY = initialMapY = y;
        currentCamX = currentCamY = 0;
        initialYPos = -99999999;
        initialCamX = px;
        initialCamY = py;
        moveSpeed = ms;
        velocity = v;
        
        imageName = im;
        image = registry.getImageLoader().getImage(im);
        
        if(image != null) {
            width = image.getWidth();
            height = image.getHeight();
        }
    }