Added functionality to upload profile images