bug fix

$metadata is empty and when file is not the image.
version 0.1.2