added log.php and changed permissions on images