get image from array