fix photo display bug