added functionality for profile picture upload