add HTML options

also add 'dimensions' function