A good question about Kant’s ethics…
Imagine you have the opportunity to take a photograph of a person who is about to starve to death.
Your motive is to help other folks who are starving. The aid won’t arrive in time to help the person you are photographing. Are you using the person as a means only? If so, is it wrong?
You don’t have the means to help the person you will be photographing, but in doing so you may help others prevent this kind of death.