Allow directive to take related attributes for image chooser purpose.