image-handling: Properly escape html looking tags

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>