Fixed problem for inputs with other names than photo