Error: Unrecognized image format ($type).