started the refactoring of image.js -- mostly merging with ribbons.js (not done yet)...

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