Background height calculation
Cleaned up size calculation