php-script and optimisation picture