If you want to install a stable ROM, you need to actually use PC Companion for Xperia devices. If your phone is using a Custom ROM, then the above mentioned solution is not available and you will need to use 3rd party tools to flash your phone. You can find details about these procedures on the larger phone support board called XDA.