This line is obviously unnecessary.  
You really don't need the newItem variable here at all.  Just set item.isImage=false and unshift item into the array.