I got it! of course mango is working perfectly. The issue was the way the perl module I use for resizing images (Imager) handled file input. For some reason if I quote my bson_bin object, it all works. go figure.