imageUpload directive can now call function thanks to $parse.