public void Initialize(BufferedImage image, double speed, int xPosition) {
        this.image = image;
        this.speed = speed;

        this.xPosition = xPosition;

        // We divide frame size with image size do that we get how many times we need to draw image to screen.
        int numberOfPositions = (Framework.frameHeight / this.image.getHeight()) + 10; // We need to add 2 so that we don't get blank spaces between images.
        yPositions = new double[numberOfPositions];

        // Set y coordinate for each image that we need to draw.
        for (int i = 0; i < yPositions.length; i++) {
            yPositions[i] = i * image.getHeight();
        }
    }