Added test for images in array
Fixed bug with images