Fixed typo
Now draws image if images  is not an array