added image_type and sample_type params to /getImages