added image resize to fit the screen