Test if the image fits into the partition before flashing it. Makes the update process more safe. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>