Add unit tests on image resolution option