Fix some unserialize and image posting problems