Fixed problems to resize images in wrapper