Added registration and image upload functionality.