Change uploadProfileImage to make asynchronous call