Added debugging to console and shows images