added popImage as factory