Open select image dialog on button click instead of page load.
Converted directive for image upload to service so that it can return selected item information.