added ajax function to use temporarily

until new image service is up