Update default.php

Missing default for $img param caused error when $img was not passed since it is used in the ternary operator of the return statement.