[P3]Revert a bit in sql.php to test images.