no need to set $formattedMetadata = false; in line 136 since we don't pass it to imageDetails() function and it is used only when $showmeta is true.