Core profile-image code.