Community: Restore the current image when the preview activity is hidden

It comes from #730 
A rebase on 'develop' branch done.