changing image to resize, still does not work totally