Fix ajax.php for live server.
Add flip functions to JImage