Rework logic for getting/outputting images. Might fix #4, but fixes bug where 'no images' warning was outputted when it shouldn't be.