Changed method for getting cell height to increase FPS