styled image using resizing constraints