Add viewport dimension check
Remove container module in favor of STL