Adding option to specify window size in pixels