Auto align images and apply median blending
Auto align images using Hugin (source images might need the exact same resolution):
align_image_stack -m -a output_prefix input1.png input2.png
Median blend images using Imagemagick:
convert output_prefix*.tif -evaluate-sequence median output.png