learning embedded images