now initializes a window for 2000 ms with an image from the res/ folder