fixed image resizing probelm