create get image to ajax call