adding mask for loading images