Yes, it's very possible that the right deal for Ray was simply not there at the deadline.
I would offer Ray and Perk to Miami for Michael Beasley and a resigned Udonis Haslem.
Yup, I actually threw out the idea of Perk straight up for Beasley last week (might have been on another site though).
I think Beasley has more value for Perk, and could blossom into a real building-block, if he can grow up a bit.
And for Miami, if they go out and resign Wade, and then sign someone like Bosh or Amare, Perkins could make a lot more sense for them than Beasley, and that deal could make sense.
Then the C's could move KG to Center (where he probably should play anyways, given his loss of mobility), and they would have a new, young weapon to build with in Beasley at the PF spot.