closing #51. Added img_id and img_name in capcha helper

Signed-off-by: Preetham <me@preetham.in>

Closing  #51 
We shouldn't output empty 'id' attributes, they must only be printed if there's a value.