Resize image for device screen,
Fixed preferences bug