adds directive, updates background image