Estimating and Exploiting the Impact of Photo Layout: A Structural Approach