private void expandImage(int width) {   
        // initailize paddle image
        GreenfootImage img = getImage();
        // change its dimensions according to preference
        img.scale(width, img.getHeight());
        // refresh, display new paddle
        setImage(img);                            
    }