Update Basic.php

fix for php bug https://bugs.php.net/bug.php?id=41820 which is causing bad backgrounds (mixed #ffffff and #fefefe) in thumbnails