added image upload directive for resizing images