header("Content-Type: image/png");
<?php header("Content-Type: image/png"); if($row["system"] == "on") echo file_get_contents("system_online.png"); else echo file_get_contents("system_offline.png");?>