Img-upload directive design