added image fns
fixed html fns