optimize images, added new input for registration form