Support PNG files for masks and class images