fix issues regarding display of selected picture