a bug fix, to cover for < 2 images in the device library