Fix pasting urls and images in Firefox

@jdiez17 clear to merge

This allows users to paste both images and urls into their browser on both Firefox and Chrome