embeded images to arraystate