Split into common and resources

Photos in resources, code in common.