- Refactor image reading implementations, cope w/ PHP bug 65060