add check for thumb
add fall back for no media thumb
remove prined newline