fixed up update controller. photo attribute strangely becomes nil though after item.save.