fix: possible crash when no image