Refactored person photo handling to match new table structure.