extract each_image method