Fixed bug with reopening PhotoWidget