Bugfixes that allow piggyphoto to actually work, plus some minor tweaks.