Is there a plugin for this?

I am doing Pixel art and I want to transfer the images I create into a 3d object. To be more specific, each pixel represents a cube. What I do now, is very time consuming and unproductive. I simply make a cube in blender and I duplicate it for each pixel. Then I color each cube to recreate the image in 3d. Is there a python script, that can import a gif or png and make each pixel a cube including setting the material to the same diffuse color?

Thanks, I decided to tackle a script myself, so I started another thread asking for help on how I would script it. Most of what I found out there does not do what I want it to.