Oh man, it’s been a while since I did this, so I can’t recall exactly how I solved it.
I don’t think there was a solution that worked out of the box. I think I modified the rake task to patch the local database without have to reupload the images? There were definitely a few points during my migration where I had to execute some custom tasks. This may have been one of them.
I’m really sorry. I wish I could remember what I did. All I remember is that I had to engineer a solution myself.