Strange behavior with viewing images in dataDirectory


I’m getting some weird quirks when attempting to display images that I’m saving to the dataDirectory using the File plugin. I’m saving a photo, then storing that photo’s location and displaying it in an image tag. Everything works fine the first time through, the picture saves, I store the location, and the image shows. However, when I restart the app and try to point to that file again, nothing shows up. Here is the code I’m working with:

me.file.writeFile(cordova.file.dataDirectory, filename, data, true).then(function(result){
        console.log('file was saved');
        me.item.images.push(cordova.file.dataDirectory + filename);
        //save the inspection and go back => {
        console.log("Could not save photo");
            message: "Could not save photo", 
            position: "bottom",
            duration: 2000

The resulting images array looks something like this:


I’ve confirmed that the array contents don’t change across restarts, and I’ve verified that the file is indeed there. Can anyone help point me in the right direction?