It’s fairly easy to blend two images in GIMP. All you have to do is: Open the two Images in GIMP. Blend the images using layer opacity/blend mode/layer mask. Export the resultant image as JPEG/PNG.
It only takes a few steps to change your image's background color in Photoshop. You'll just need to use the Quick Selection Tool and Quick Mask mode.