nit: please also update the comment here because duck could also be boolean represented image contains in array now