ListView displays incorrect image for item
<p>I can add images to my <code>ListView</code> and they can display, but if the items in the list are more than 8, the <code>ListView</code> displays a wrong image for the item. Here is my <code>newView()</code> method:</p>

<pre class="lang-java prettyprint-override"><code>public View newView(Context context, Cursor cursor, ViewGroup parent){
    final LayoutInflater inflater = LayoutInflater.from(context);
View view = inflater.inflate(layout, parent, false);
try{
        int count = cursor.getCount();
        String image = cursor.getString(cursor.getColumnIndex(RecipeClasses.Recipe.RECIPE_IMAGE));
        String recipe_name = cursor.getString(cursor.getColumnIndex(RecipeClasses.Recipe.RECIPE_NAME));

        Uri path = Uri.parse(image);
        TextView recipe_txt = (TextView) view.findViewById(R.id.txt_recipe_row);
        ImageView img = (ImageView) view.findViewById(R.id.img_view_recipe);
        if (new File(image).exists()) {
            ImageResizer img_W = new ImageResizer(context, img.getMeasuredWidth(), img.getMeasuredHeight());
            img_W.loadImage(image, img);
        } else {
            ImageResizer img_W = new ImageResizer(context, img.getMeasuredWidth(), img.getMeasuredHeight());
            img_W.loadImage(path, img);
            img.setImageURI(path);
        }

        if (recipe_txt != null){
            recipe_txt.setText(recipe_name);
        }
    } catch (Exception e){
        // TODO: handle exception
    }

    return view;
}
</code></pre>
