updated photo display to handle db photos