Clear imageUrl and imageData on modal close

To avoid flickering in Firefox.