Fixed problems with photo formatter under certain circumstances.