add @resource to Photo