Resize image and add bg color.