Fix an off-by-one error in function exportImageAlpha.