small change in how photo file is passed