Check if thumbnail exists before outputting to print