ACV: 15: Little refactoring

Little refactoring; fixed bug in showSingleImage