added image api for the java server