Handles timeouts in estimateSizeForLayer

New PR to fix merge conflicts
sets timeout to 30 seconds
displays appropriate message if sizeEstimate takes longer than 30 seconds