fix edit an image from the Media tab

closes #84