Fixed strict warning in flagImage method

Explode returns a value when array_pop is expecting a reference