Adding ajax to PhotoComponent.