Extracting Ns._process_image_params() and creating unit test
Extracted the _process_image_params() to ease the testability of that code.
Introduced a unit test to cover that function.
Change-Id: I84ab38b5921deeea25376e433af7e374f436238e
Signed-off-by:
sousaedu <eduardo.sousa@canonical.com>