Directive can now support array type of either object or string (urls)