function copyImage() {
    var onFileSystemReceived = function(fileSystem) {
        var destDirEntry = fileSystem.root;

        // Test FileEntry API here.
        fileEntry.copyTo(destDirEntry, 'copied_file.png', logCallback('FileEntry.copyTo', true), logCallback('FileEntry.copyTo', false));
        fileEntry.moveTo(destDirEntry, 'moved_file.png', logCallback('FileEntry.moveTo', true), logCallback('FileEntry.moveTo', false));
    };

    window.requestFileSystem(LocalFileSystem.TEMPORARY, 0, onFileSystemReceived, null);
}
Copy image from library using a NATIVE_URI destination type
This calls FileEntry.copyTo and FileEntry.moveTo.