refactoring. added factory producer. chanegd rest params from // to &image-
fixed bug: all images were being indexed when request was to index a single image