adding index to pictures so we can sort in property_detail