Fix white flash issue when exiting photo browser