preview page: resize image after image load finish.