show thumbnail if is a image attachment