resize image and text