install_image rewrite: now supports detects and tries to correctly setup the new image for omap/imx/imx23 based devices

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>