looks like Director::set_environment_type("dev"); cant handle images.
My site was crashing with the Gallery Module until i got out of dev mod.
to those who want to use the latest Gallery module on a live hosted site, remove Director::set_environment_type("dev");
tx