I tried flashing the img file using flash_image command from terminal on phone. Now it gets stuck on HTC splash screen if I boot into recovery. Haven't tried fastboot yet.
Primary Device Sony Xperia™ Z
Running Stock ROM 4.1.2 (.253) Rooted on Unlocked Bootloader with recovery CWM 184.108.40.206 (DooMLord's port)
Secondary Device HTC Wildfire A3333
Running CM9 4.0.4 (ICS) with Custom Radio at 729Mhz CPU
Previous Device Spice C-810
Feature Phone (Multimedia with GPRS and Wap browser)