image: fix issue where we called imagick.Init multiple times