to detect if an image still exists, some things may, for now, access freed images and break. This will be fixed once proper destroy handlers are added.
from all sorts of ugly dependencies.