fix photo flickering