Image imageName;
imageName = getImage(getDocumentBase(),"image.jpg");
g.drawImage(snake,xlocation,ylocation,this);
where g is the graphics device painting your window
and also, this only works if the image is in the program's folder, otherwise replace getDocumentBase() with the full image path, such as getImage(c:\folder, "image.jpg")