Directive to work with upload inputs that handle images