GUI-876: Pass controller options to image picker as JSON and add unit test for image picker panel.