Midjourney /blend and Image Merging Feature Recreation

Is it possible to replicate Midjourney’s /blend command as a standalone program? Additionally, I would like to see whether or not prompts and negative prompts can be used in order to finetune the results of the merged image.