Scale texture sizes to fit within available memory