updated function that can set a full screen image