working with the secret and public images