Resize the image if it's too big for the device to handle it