Resize images to fit the screen height when automatically setting the wallpaper