Calculate extension for mammogram image files