Fixed strict warning in flagImage method

Explode returns a value when array_pop is expecting a reference
Merge pull request #23 from rehabstudio/feature/strict-warnings

Fixed strict warning in flagImage method