[iPhone 3G] Upgrade to 4.2.1 with baseband 05.13.04

Hi everyone!
I've been searching all around but I haven't found exactly what I need. The thing is I've got an iPhone 3G on iOS 4.0.2 with baseband 05.13.04 and I'd like to upgrade to iOS 4.2.1 but keeping my old baseband so that I can unlock it with ultrasn0w. I DO NOT WHAT TO USE THE IPAD BASEBAND. How can I create a custom IPSW that keeps my old baseband?

Original thread: https://forums.imore.com/threads/iphone-3g-upgrade-to-4-2-1-with-baseband-05-13-04.209068/