Minor adjustments related to libheif 1.13.0 usage
Security scan:
https://www.virustotal.com/gui/file/852fabf8dadb54e0718c8688e5c622a594beed49d76bdc41353cd88a891a5431
https://www.virustotal.com/gui/file/7ed92e2134799467f17a9a5603f400b6352c93ae6f5f00255e8e57bf13958c48
https://www.virustotal.com/gui/file/27908401502cf88bdf97f456b27b3b96303dcb33b63f3377b283b2dbb9f710e9