Fixed some erros. Photo files now are shown ok at messages module.