House of Moto using Keep Data or Universal should do the trick. Make sure to use the same firmware version the phone is on, such as do not downgrade. You can upgrade it though, so if unsure of version just get the newest version.
Sent from my RAZR M (CM Nightlies) from Tapatalk Pro.
Please say thanks if a post helps you out.
"There's no point for democracy when ignorance is celebrated." -NOFX
Motorola Droid Razr M Unlocked on Team Gummy Nightlies 4.4.4
Archos G9 101 Developer Edition on Cyanogenmod 11 4.4.3