- Change self:: to Image_GD::
- Restore empty() checks.