Updated upload.php to count for updating pics