fix photo display issue