fix photo rendering