I found the solution from here:
And it works. Here’s my modification and this is using a single-image select media frame:
frame.on('open', function(){
var selection = frame.state().get('selection');
var selected = $('#image-id').val(); // the id of the image
if (selected) {
selection.add(wp.media.attachment(selected));
}
});