fix typo

It seems only the array keys are needed so would this be better: $extensions = array_keys($this->image_types) ?