maybe there is a better way of getting first image text