API, Screenshot Test: allow for per-test resolution settings

This would allow to programatically circumvent some of the limitations of the current available workflow via the GUI.