protected void drawImage(int x,int y,int w,int h,String image){
  Image img=loadImage(image);
  if (img != null) {
    g.drawImage(img,x,y,w,h,null);
  }
}

protected void drawImage ( int x , int y , int w , int h , String image ) { Image img = loadImage ( image ) ; if ( img != null ) { g . drawImage ( img , x , y , w , h , null ) ; } }
draws an image for the given parameters .
