improved smart size logic for non-image calcs.