Fix a bug preventing images to be shown