Added dimension support to image html helpers

Signed-off-by: Tom Wright <tom@inflatablecookie.com>