added image update actions (still thinking about it) + some fixes and refactoring...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>