I have write many plugins and i use the base64-function for inlude images, not as a file, only for include with php; better performance; little bid faster. I dont like your idea for scan the plugin-directory for the base64 function.