ImageToData is an extension to Brackets that allows you to convert any image from the web into a data:image URL.