def show_images(imglist, zoom=1, needs_encoding=False):
if type(imglist) is not list:
imglist = [imglist]
n = len(imglist)
first_img = imglist[0]
dpi = 77
plt.figure(figsize=(first_img.shape[0]*zoom*n/dpi,first_img.shape[0]*zoom*n/dpi))
for i in range(0,n):
img = imglist[i]
plt.subplot(1,n,i + 1)
plt.tight_layout()
plt.axis('off')
if len(img.shape) == 2:
img = np.repeat(img[:,:,np.newaxis],3,2)
plt.imshow(img, interpolation='nearest')