upload avatar functionality - guess that I finished front-end part ( only directive )