Cleanup in profilepicture js