changed function to scale SDL surface to be externally available