php-based jpeg compression